@import '~antd/lib/style/themes/default.less';

.draggableBox {
    background-color: #f8f8f8;
    padding-top: 15px;
}

.formCtr {
    text-align: center;
    padding-bottom: 10px;
    .outeripad,
    .ipadbody,
    .ipadscreen {
        position: relative;
    }

    .ipadcamera,
    .ipadhomebutton {
        position: absolute;
    }
}

.outeripad {
    box-shadow: 0 0 13px 3px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 8px;
    max-width: 480px;
    margin: 0 auto 20px;

    .ipadbody {
        background-color: rgba(239, 239, 239, 0.6);
        border-radius: 5px;
        padding-top: 5px;
        height: 500px;
        overflow-y: auto;
        border: 1px solid #f6f6f6;
    }

    .ipadscreen {
        background-color: rgba(239, 239, 239, 0.6);
    }

    .ipadcamera {
        top: -38px;
        left: 50%;
        background-color: #aeaeae;
        height: 10px;
        width: 10px;
        border-radius: 5px;
        margin-top: 10px;
        margin-left: -5px;
    }

    .ipadhomebutton {
        background-color: #fff;
        height: 30px;
        width: 30px;
        border-radius: 15px;
        border: 1px solid #a8a8a8;
        margin-top: 6px;
        margin-left: -15px;
        left: 50%;
    }

    .el-radio-group {
        line-height: 2.5;
    }
}

.dragCtr {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.componentsBody {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
    cursor: move;
    border: 1px solid #f0f0f0;
    color: #262626;
    border-radius: 2px;

    > i {
        font-size: 20px;
    }

    .svgIcon {
        color: #777;
        font-size: 15px;
        width: 18px;
        height: 18px;
        vertical-align: bottom;
        fill: currentColor;
        overflow: hidden;
    }

    &:hover {
        color: #ff9e00;

        .svgIcon {
            color: #ff9e00;
        }
    }

    :global {
        .ant-form-item {
            display: flex;
            align-items: center;
            padding: 8px 0;
        }

        .ant-form-item-label {
            width: 100px;
            word-wrap: break-word;
            padding: 0;
        }

        .ant-form-item-control {
            display: flex;
            align-items: center;
            flex-direction: row;
            flex-wrap: wrap;
        }

        .ant-form-item-children {
            width: 100%;
        }

        .ant-form-item-control-wrapper {
            width: 100%;
        }

        .ant-select-dropdown {
            text-align: left;
        }
    }
}

.componentsList {
    box-sizing: border-box;
    height: 100%;
    padding-left: 8px;
    padding-right: 8px;
    text-align: left;
    user-select: none;

    .componentsItem {
        display: inline-block;
        width: 48%;
        margin: 1%;
        transition: transform 0ms !important;
    }
}

.renderList {
    height: 400px;

    .renderMain {
        height: 400px;
    }

    .componentsItem {
        width: 100%;
        margin-bottom: 10px;
        transition: transform 0ms !important;

        position: relative;

        .componentsBody {
            border-color: #fff;

            &:hover {
                border: 1px dashed #ff9e00;
                color: white;

                .svgIcon {
                    color: #ff9e00;
                }

                .deleteBtn {
                    display: block;
                }
            }
        }

        .componentsBody.current {
            border: 1px solid #ff9e00;

            .deleteBtn {
                display: block;
            }
        }
    }

    :global {
        .ant-form-item {
            width: 100%;
            margin-bottom: 0;
            text-align: left;
        }
    }
}

.rightBoardForm {
    padding: 0 10px;
    text-align: left;

    .formItemLabel {
        b {
            color: #262626;
        }

        span {
            font-size: 12px;
            color: #bfbfbf;
        }
    }

    .selectList {
        display: flex;
        align-items: center;

        .icons {
            flex: 80px;
            margin-left: 10px;

            i {
                cursor: pointer;

                & + i {
                    margin-left: 8px;
                }

                &:hover {
                    color: @primary-color;
                }
            }
        }
    }

    :global {
        .ant-form-item {
            margin-bottom: 0;
        }
    }
}

.deleteBtn {
    position: absolute;
    width: 14px;
    height: 14px;
    top: 0;
    right: 0;
    color: white;
    background-color: #ffa22d;
    line-height: 14px;
    text-align: center;
    display: none;
    cursor: pointer;
}
.emptyCtr {
    padding-top: 40%;
    img {
        display: block;
        width: 96px;
        height: 96px;
        margin: 0 auto 10px;
    }
    span {
        display: block;
    }
}
